#!/bin/sh

ffinstall()
{
	for x in $1
		do
			pkg_add -r $x
		done
}

ffdialog()
{
	dialog --infobox "spend time is $1 seconds" 3 40 ; sleep $2
}

fftime()
{
	ss=$(( $fcend - $fcstart ))
	ffdialog $ss 10
}

ffrc()
{
	echo $1 >> /etc/rc.conf
}

ffbak()
{
	cp $1 $1_fastcow
}

ffstr()
{
	sed -i '' "s/$1/$2/1" $3
}

ffecho()
{
  echo -e "\e[1;42m $1 \e[0m"
}
